package cn.javaxc.mvcwork.util.helper;
import java.util.*;
import cn.javaxc.model.base.*;
import cn.javaxc.model.page.VUEFormBean;
import cn.javaxc.mvcwork.framework.actions.TActionContext;
import net.sf.json.*;

public class TreeTableHelper 
{ 
	public static void exportList(SQLList<SQLMap> node,SQLList _columns, TActionContext context,String filename) {

	}
	public static void exportList(TActionContext context,List<SQLList> nodes,List<SQLList> columns,String[] tablename,String filename) {

	}
	public static void parseFlowJson(TActionContext context,String pathInfo){
		VUEFormBean emtMap=(VUEFormBean)context.getFormBean();
//		System.err.println(FlowUtil.class.getName()+"\\n "+pathInfo.contains("\n"));
//		System.err.println(FlowUtil.class.getName()+"black "+pathInfo.contains(" "));
		pathInfo=pathInfo.replace(":undefined",":'undefined'").replace("\r\n","").replace("\n","");
		List<JSONObject> ary=JSONObject.fromObject(pathInfo).getJSONArray("ary");
		for (int i=0;i<ary.size();i++){
			SQLMap emt=new SQLMap();
			emt.putAll(ary.get(i));
			emtMap.getElements().put(i,emt);
		}
	}
	public static void saveRecordJsp(TActionContext context,String text,String table_sid,SQLMap emt){

	}
	public static String buildRecordText(String text){
		return text;
	}
	public static List<String> buildRequirementElementsJson(TActionContext context,boolean hasimg){
		return new ArrayList();
	}
	public static void buildRequirementElementsMap(TActionContext context,boolean hasimg){

	}
	public static void saveRecordJsp(TActionContext context,String text,String table_sid){

	}
	public static String viewRecordHtml(String text){
		return text;
	}
};
